package com.zl.iot.docking.exception;

import com.zl.iot.docking.consts.DEFAULT;

import javax.jms.JMSException;

/**
 * @author chenzy
 * @since 2023/6/26
 **/
public interface ZLExcep {
    static MyExceptionNew error(String msg, Throwable e) {
        return MyExceptionNew.error(DEFAULT.CODE,msg,e);
    }
    static MyExceptionNew error(String msg){
        return MyExceptionNew.error(DEFAULT.CODE,msg);
    }
    static void throwError(String msg, Throwable e) {
        throw MyExceptionNew.error(DEFAULT.CODE,msg,e);
    }
    static MyExceptionNew info(String msg){
        return MyExceptionNew.error(DEFAULT.INFO_CODE,msg);
    }
    static void throwInfo(String msg){
        throw MyExceptionNew.error(DEFAULT.INFO_CODE,msg);
    }


}
